/*
 * @Author: xws 1043495328@qq.com
 * @Date: 2023-07-12 16:39:06
 * @LastEditors: xws 1043495328@qq.com
 * @LastEditTime: 2023-07-13 14:18:55
 * @FilePath: \vue3-admin-template\src\api\user\type.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
//登录接口携带参数ts类型
export interface loginForm {
  username: string
  password: string
}
interface dataType {
  token?: string
  message?: string
}
//登录接口返回数据类型
export interface loginResponseData {
  code: number
  data: dataType
}
interface userInfo {
  userId: number
  avatar: string
  username: string
  password: string
  desc: string
  roles: string[]
  buttons: string[]
  routes: string[]
  token: string
}
interface user {
  checkUser: userInfo
}
//定义服务器返回用户信息相关的数据类型
export interface userResponseData {
  code: number
  data: user
}
